package com.hqyj.service;

import com.hqyj.pojo.ManagerUserInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

public interface ManagerUserInfoService {

    //登录方法
    String login(ManagerUserInfo user, HttpServletRequest request);

    //注册
    String zhuce(ManagerUserInfo user);

    //邮件发送
    HashMap<String,Object> sendCode(String toEmail, HttpServletRequest request);

    //查询
    HashMap<String,Object> select(ManagerUserInfo user);
    //根据userId查询
    ManagerUserInfo selectByUserId(ManagerUserInfo user);

    //修改
    String update(ManagerUserInfo user);

    //删除
    String del(ManagerUserInfo user);
    //修改密码
    String updatePwd(ManagerUserInfo user, HttpServletRequest request);

    //修改头像
    String updateHead(ManagerUserInfo user, HttpServletRequest request);

    //新建
    String xinjian(ManagerUserInfo user);
}
